import 'package:flutter_rider/utils/screen_fit.dart';
import 'package:flutter/material.dart';

class UIConstant {}

class UIColor {
  UIColor._privateConstructor();

  static const color_primary = Color(0xff54BD95);
  static const color_main = Color(0xfff6f6f6);
  static const color_content = Color(0xffffffff);

  ///白色90%透明度
  static final colorWhile09 = const Color(0xffffffff).withOpacity(0.9);

  static const color_t1 = Color(0xff333333);
  static const color_t2 = Color(0xff666666);
  static final color_t3 = Colors.black.withOpacity(0.4);
  static final color_t4 = Colors.black.withOpacity(0.6);
  static final color_t5 = Color(0x99000000).withOpacity(0.6);
  static final color_t6 = Color(0xFF00A870);
  static final color_t7 = Color(0x66000000).withOpacity(0.4);
  static final color_t8 = Color(0x42000000).withOpacity(0.26);
  static final color_t9 = Color(0x66000000).withOpacity(0.9);
  static final color_t10 = Color(0xFF000000);
  static final color_t11 = Color(0xFFFEF3E6);
  static final color_t12 = Color(0xFFF3F3F3);
  static final color_t13 = Color(0xe6000000).withOpacity(0.9);
  static final color_t14 = Color(0xFF000000).withOpacity(0.4);
  static final color_t15 = Color(0xFF000000).withOpacity(0.6);
  static final color_t16 = Color(0xFF000000).withOpacity(0.9);
  static final color_t17 = Color(0xFF000000).withOpacity(0.26);
  static const color_t18 = Color(0xFFBCC4D0);
  static final color_opcity = Colors.black.withOpacity(0.0);

  static const color_info = Color(0xffED7B2F);

  static const color_image_holder = Color(0xffeeeeee);
  static const color_input = Color(0xfff3f3f3);
  static const color_divider = Color(0xffe7e7e7);
  static const color_disable = Color(0xffd2d2d2);
  static const color_border = Color.fromARGB(255, 210, 210, 210);

  static const color_work = Color(0xFFF19E20);
  static const color_wait = Color(0xFF49CA42);
  static const color_none = Color(0xFFE34D59);
  static const color_dispatch = Color(0xFF3E84FF);

  static final color_shadow = Colors.black.withOpacity(0.25);

  static final color_tagbg = Color(0xFF36A17B);
  static final color_black = Color(0xFF000000);

  static final color_shadow2 = Colors.black.withOpacity(0.1);

  static final color_bg = Color(0xFFE8FFF2);

  static const colorInputBg = Color(0xFFE8F8F2);
}

class UISize {
  static const int title_text_size = 17;
  static const int main_text_size = 16;
  static const int sub_text_size = 14;
}

class UITextStyle {
  static TextStyle get main_text {
    return TextStyle(
        fontSize: UISize.main_text_size.rpx, color: UIColor.color_t1);
  }

  static TextStyle get sub_text {
    return TextStyle(
        fontSize: UISize.sub_text_size.rpx, color: UIColor.color_t3);
  }
}
